<script type="text/javascript">
$(function() {
	addFilesUploadEvent_photo();
});

</script>
<div style="height:500px;">
	<div>
		<a class="btn btn-success" id="uploadFilesBtn" onclick="javascript:addFilesUploadEvent_photo();"><i class="icon-arrow-up"></i>上传照片</a>
		<a class="btn btn-success" id="uploadFilesBtn" onclick="javascript: savep_photo(); return false;"><i class="icon-save"></i>保存修改</a>
	</div>
	<form id="photoListForm">
	<#list list as a>
		<div style="float:left;">
			<input id="alc" name="alc" value="${(alc)!''}" type="hidden" />
			<div class="listfile">
				<#list a.photoList as item>
				<li>
					<div class="imgDel">
						<a href="#" title="回收站" onclick="javascript:deletePhoto_photo('${(item.code)!''}');return false;"><span class="icon-remove"></span></a>
					</div>
					<a href="javascript:;" data-rel="image" onclick="javascript:showPhoto_photo('${(item.code)!''}');">
						<img src="${(item.uuid)!''}" alt="" />
					</a>
					<p>
					<input type="checkbox" name="code" class="box" onclick="javascript: check1_photo($(this));" value="${(item.code)!''}" <#if item.cover == true>checked</#if>/>设为封面
					<span class="filename">${(item.name)!''}</span>
					</p>
				</li>
				</#list>
			</div>
		</div>
	</#list>
	</form>
</div>